package com.play.ballen.im;

import com.play.ballen.data.PImGroupStatus;
import com.play.ballen.utils.UserInfoManager;

import java.util.List;

public class PvtTools {

    public static PImGroupStatus getOtherStatus(List<PImGroupStatus> statuses) {
        if (statuses!=null) {
            for (PImGroupStatus status : statuses) {
                if (UserInfoManager.INSTANCE.getUserInfo().id != status.user_id) {
                    return status;
                }
            }
        }
        return null;
    }
    public static PImGroupStatus getMineStatus(List<PImGroupStatus> statuses) {
        if (statuses!=null) {
            for (PImGroupStatus status : statuses) {
                if (UserInfoManager.INSTANCE.getUserInfo().id != status.user_id) {
                    return status;
                }
            }
        }
        return null;
    }
}
